#遍历整个列表
magicians = ['alice', 'david', 'carolina']
for magician in magicians:
    print(magician)
    print(magician.title() + ", that was a great trick!")
    print("I can't wait to see your next trick, " + magician.title() + ".\n")

print("Thank you, everyone. That was a great magic show!")
#原理分析：我们定义一个for循环，这行代码让python从列表magicians中取出一个名字，并将其储存在变量magician中。
